<%@ Language=VBScript %>
<%Option Explicit%>
<%
Response.Expires=0

if Session("UserName") = "" then
	response.Redirect "Login.asp"
end if
%>

<!--#include file="../cons.asp"-->
<!--#include file="../../Common/Database.asp"-->

<script src="../../js/prototype.js" type="text/javascript"></script>

<style type='text/css'>
	.pullDownTable{border-collapse: collapse; width:130px; background-color:#E7E7C5;}
	.pullDownTD{cursor: hand; width:130px; height:20px; border:1px solid #adadad;font:normal 11px Verdana;color:#666666;}
	.pullDownTDSS1{cursor: hand; width:120px; height:20px; border-left: 1px solid #adadad; border-top: 1px solid #adadad; border-bottom: 1px solid #adadad; font:normal 11px Verdana;color:#666666;}
	.pullDownTDSS2{cursor: hand; width:10px; height:20px; border-top: 1px solid #adadad; border-right: 1px solid #adadad; border-bottom: 1px solid #adadad; font:normal 11px Verdana;color:#666666;}
</style>

<html>
<body bgcolor="#d4d4c0" style="margin: 0px;">
<center>
<br>
<table cellpadding="0" cellspacing="0" width=95% style="border-collapse: collapse; font-family: Verdana; font-size: 0px;">
<tr>
	<td style="background-image: url(../../images/sup_izq.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
	<td style="border-top: solid 1px #909090; background-color: #FCFCE4;">&nbsp;</td>
	<td style="background-image: url(../../images/sup_der.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
</tr>
<tr>
	<td style="border-left: solid 1px #909090; background-color: #FCFCE4;" height=50>&nbsp;</td>
	<td style="background-color: #FCFCE4;">
		<table cellpadding="0" cellspacing="0" width=100% height=100% style="border-collapse: collapse; font-family: Verdana; font-size: 12px; table-layout:fixed;" ID="Table3">
			<tr>
				<td valign="top" style="font-weight: bold; width: 400px;">Buscar Profesor:</td>
				<td valign="top" style="font-weight: bold;"></td>
				<td valign="top" style="font-weight: bold;"></td>
			</tr>
			<tr>
				<td valign="top"><input onkeypress="if (event.keyCode == 13) {GetProfesor(txtProfesor.value);}" id="txtProfesor" name="txtProfesor" type="text" size="50"></td>
				<td valign="top" align="left"><input onclick="GetProfesor(txtProfesor.value);" type="button" value="Buscar" ID="Button1" NAME="Button1"></td>
				<td valign="top" style="font-weight: bold;"></td>
			</tr>
		</table>
	</td>
	<td style="border-right: solid 1px #909090; background-color: #FCFCE4;">&nbsp;</td>
</tr>
<tr>
	<td style="background-image: url(../../images/inf_izq.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
	<td style="border-bottom: solid 1px #909090; background-color: #FCFCE4;">&nbsp;</td>
	<td style="background-image: url(../../images/inf_der.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
</tr>
</table>
<br>
<table cellpadding="0" cellspacing="0" width=95% style="border-collapse: collapse; font-family: Verdana; font-size: 0px;">
<tr>
	<td width="100%" valign="top" align="center">
		<table cellpadding="0" cellspacing="0" width=100% style="border-collapse: collapse; font-family: Verdana; font-size: 0px;" ID="Table1">
		<tr>
			<td style="background-image: url(../../images/sup_izq.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
			<td style="border-top: solid 1px #909090; background-color: #FCFCE4;">&nbsp;</td>
			<td style="background-image: url(../../images/sup_der.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
		</tr>
		<tr>
			<td style="border-left: solid 1px #909090; background-color: #FCFCE4;" height=50>&nbsp;</td>
			<td style="background-color: #FCFCE4;">
				<table cellpadding="0" cellspacing="0" width=100% height=100% style="border-collapse: collapse; font-family: Verdana; font-size: 12px;" ID="Table2">
					<tr>
						<td valign="top" style="font-weight: bold;">Listado de Profesores</td>
					</tr>
					<tr>
						<td valign="top" align="center"><div id="cargando1" style="display: none; width: 100%; height: 300px;"><img width=88 height=88 src="../../Images/Cargando.gif"></img></div><div id="divProfesores" style="width: 100%; height: 300px;"></div></td>
					</tr>
				</table>
			</td>
			<td style="border-right: solid 1px #909090; background-color: #FCFCE4;">&nbsp;</td>
		</tr>
		<tr>
			<td style="background-image: url(../../images/inf_izq.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
			<td style="border-bottom: solid 1px #909090; background-color: #FCFCE4;">&nbsp;</td>
			<td style="background-image: url(../../images/inf_der.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
		</tr>
		</table>
	</td>
</tr>
</table>

<script>

function GetProfesor(txtProfesor)
{
	cargando1.style.display = '';
	divProfesores.style.display = 'none';
	new Ajax.Request('AJAX_GetProfesoresxNomyAp.asp?txtProfesor='+txtProfesor+'',{
								method:'get',
								onSuccess:	function(transport)
											{
												//alert(transport.responseText);
												var response = transport.responseText || "no response text";       
												//alert("Success! \n\n" + response);
												divProfesores.innerHTML = response;
												cargando1.style.display = 'none';
												divProfesores.style.display = '';
											},
								onFailure: function()
											{
													divProfesores.innerHTML = 'No hay datos...';
													cargando1.style.display = 'none';
													divProfesores.style.display = '';
											}   
								}
					); 
}


function FirmarEnPantalla(idAlumno, idSedeCurso)
{
	window.open("FirmarEnPantalla_R.asp?idAlumno="+724+"&idSedeCurso="+1+"&CuyExtraCu=1", "EnPantalla", "top=0, left=0, width=1020, height=650, toolbar=1, scrollbars=1");
}

function PopupEvAlumno(idAlumno, idSedeCurso, IdMateria)
{
	window.open("PopupEvAlumno.asp?idAlumno="+idAlumno+"&idSedeCurso="+idSedeCurso+"&IdMateria="+IdMateria, "PopupEvAlumno", "top=0, left=0, width=600, height=400, toolbar=0");
}
</script>
</center>
</body>
</html>